package com.wgq.TestSpring;

import com.wgq.Bean.Li;
import com.wgq.Bean.persion;
import com.wgq.Until.GetSpringConfig;
import org.junit.Test;

public class TestMain {
    @Test
    public void getLI(){
        Li li = (Li) GetSpringConfig.getApplicationContextBean().getBean("li");
        System.out.println(li.getName()+"==="+li.getW().getName());
    }
    @Test
    public void getPersion(){
        persion persion = GetSpringConfig.getApplicationContext().getBean("persion", com.wgq.Bean.persion.class);
        persion.getCat().shout();
        persion.getDog().shout();
    }
}
